package models;

import play.db.jpa.Model;

import javax.persistence.Entity;

/**
 * Created by IntelliJ IDEA.
 * User: Julioagh
 * Date: 18/11/11
 * Time: 01:17 AM
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class User extends Model {

    public String userId;
    public String password;
    public String fullName;


    public User(String userId, String password, String fullName) {
        this.userId = userId;
        this.password = password;
        this.fullName = fullName;
    }

    public static User connect(String userId, String password) {
        return find("byUserIdAndPassword", userId, password).first();
    }

}
